<div class="naplok mutat">
<h2><?php echo __('Naplo');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $naplo['Naplo']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Ceg Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $naplo['Naplo']['ceg_id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Naplotipus'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($naplo['Naplotipus']['id'], array('controller'=> 'naplotipusok', 'action'=>'mutat', $naplo['Naplotipus']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Valuta'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($naplo['Valuta']['id'], array('controller'=> 'valutak', 'action'=>'mutat', $naplo['Valuta']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Sorszam'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $naplo['Naplo']['sorszam']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Nev'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $naplo['Naplo']['nev']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Alapertelmezett Osztalykod'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $naplo['Naplo']['alapertelmezett_osztaly']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Alapertelmezett Szamla'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $naplo['Naplo']['alapertelmezett_szamla']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Lezárt'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $naplo['Naplo']['lezart']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $this->Html->link(__('Edit Naplo'), array('action'=>'edit', $naplo['Naplo']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Naplo'), array('action'=>'delete', $naplo['Naplo']['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $naplo['Naplo']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Naplok'), array('action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Naplo'), array('action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Valutak'), array('controller'=> 'valutak', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Valuta'), array('controller'=> 'valutak', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Naplotipusok'), array('controller'=> 'naplotipusok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Naplotipus'), array('controller'=> 'naplotipusok', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Bizonylatok'), array('controller'=> 'bizonylatok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Bizonylat'), array('controller'=> 'bizonylatok', 'action'=>'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Bizonylatok');?></h3>
	<?php if (!empty($naplo['Bizonylat'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Naplo Id'); ?></th>
		<th><?php echo __('Osztaly Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Sorszam'); ?></th>
		<th><?php echo __('Arfolyam'); ?></th>
		<th><?php echo __('Megjegyzes'); ?></th>
		<th><?php echo __('Datum'); ?></th>
		<th><?php echo __('Hatarido'); ?></th>
		<th><?php echo __('Spec'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($naplo['Bizonylat'] as $bizonylat):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $bizonylat['id'];?></td>
			<td><?php echo $bizonylat['naplo_id'];?></td>
			<td><?php echo $bizonylat['osztaly_id'];?></td>
			<td><?php echo $bizonylat['user_id'];?></td>
			<td><?php echo $bizonylat['sorszam'];?></td>
			<td><?php echo $bizonylat['arfolyam'];?></td>
			<td><?php echo $bizonylat['megjegyzes'];?></td>
			<td><?php echo $bizonylat['datum'];?></td>
			<td><?php echo $bizonylat['hatarido'];?></td>
			<td><?php echo $bizonylat['spec'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('mutat'), array('controller'=> 'bizonylatok', 'action'=>'mutat', $bizonylat['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller'=> 'bizonylatok', 'action'=>'edit', $bizonylat['id'])); ?>
				<?php echo $this->Html->link(__('Delete'), array('controller'=> 'bizonylatok', 'action'=>'delete', $bizonylat['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $bizonylat['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Bizonylat'), array('controller'=> 'bizonylatok', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
